package com.hbnu.mysql.Flower;

import java.math.BigDecimal;

/*
 * @author zouting
 * @Date 2025-11-05-22:14
 *
 */public class Flower {
    private String fid;
    private String fname;
    private String language;
    private BigDecimal price;
    private Integer stock;
    private String category;
    private String imageUrl;

    public Flower(String fid, String fname, String language, BigDecimal price,
                  Integer stock, String category, String imageUrl) {
        this.fid = fid;
        this.fname = fname;
        this.language = language;
        this.price = price;
        this.stock = stock;
        this.category = category;
        this.imageUrl = imageUrl;
    }
    public String getFid() {
        return fid;
    }
    public String getFname() {
        return fname;
    }
    public String getLanguage() {
        return language;
    }
    public BigDecimal getPrice() {
        return price;
    }
    public Integer getStock() {
        return stock;
    }
    public String getCategory() {
        return category;
    }
    public String getImageUrl() {
        return imageUrl;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }
    public void setCategory(String category) {
        this.category = category;
    }
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    @Override
    public String toString() {
        return fid + "\t" + fname + "\t" + language + "\t￥" + price +
                (stock != null ? "\t库存:" + stock : "") +
                (category != null ? "\t分类:" + category : "");
    }
}
